import {memberlist} from "../../../request/api"

const state = {
    memberList: []
}

const getters = {
    getMember(state){
        return state
    }

}
const mutations = {
    REQ_GETMEMBER(state,payload){
       state.memberList = payload
    }

}
const actions = {
    getMemberListActions({commit}){
        memberlist().then(res=>{
            // console.log(res);
            if(res.code==200){
                commit("REQ_GETMEMBER",res.list)
            }
        })
    }

}

export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}